<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<html:html>
<head>
<title>EPrice ~ Busqueda de Usuarios</title>
<link href="css/estilos.css" rel="stylesheet" type="text/css">
</head>
<script type="" language="javascript">
function enviaParam(i, j){
  try{
    window.opener.document.getElementById('<bean:write name="map_form" property="nomina"/>').value=i;
    window.opener.document.getElementById('<bean:write name="map_form" property="nombre"/>').value=j;
    window.opener.focus();
  }catch(e){
    alert(e);
  }finally{
    window.close();
  }
}
</script>
<body bgcolor="#ffffff" onLoad="javascript: window.focus();">
  <html:form method="get" action="userList">
<table width="370" class="" cellpadding="0" cellspacing="0">
      <tr>
	  	<td colspan="3">
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr class="encabezadoTabla">
           			<td width="25%" height="18" align="right" valign="middle" class="encabezadoTabla font_general"><img src="images/img_loginFlecha.gif" width="17" height="23" alt=" "></td>
              		<td width="65%" height="18" align="left" valign="middle" class="encabezadoTabla font_general"><strong>&nbsp;&nbsp;Listado Usuarios</strong></td>
				</tr>
			</table>
		</td>
	  </tr>
	  <tr>
	  	<td colspan="3">
			<table width="100%" border="0" cellpadding="0" cellspacing="1">
				<tr>
					<html:hidden property="action" value="buscarUsuario"/>
        			<html:hidden property="nomina" name="map_form"/>
					<html:hidden property="nombre" name="map_form"/>
					<td align="center" class="colorCampo font_general">Nomina / Nombre</td>
					<td align="center" class="colorCampo font_general"><html:text property="str_search" size="30" maxlength="30" style="textfield"/></td>
					<td align="center" class="colorCampo font_general"><html:submit property="submit" value="Buscar" styleClass="boton"></html:submit></td>
				</tr>
			</table>
		</td>
      </tr>
      <tr>
        <td align="center" class="encabezado_col font_general"></td>
        <td align="center" class="encabezado_col font_general">Nomina</td>
        <td align="center" class="encabezado_col font_general"> Nombre </td>
      </tr>
      <logic:iterate id="usuario" name="arr_usuario">
	  <bean:define id="bool_row" name="usuario" property="bool_fila"></bean:define>
      <tr>
        <td class="font_general <logic:equal name="bool_row" value="false">im</logic:equal>par" align="center">
           <a href="#" onclick='enviaParam("<bean:write name="usuario" property="str_nominaUsuario"/>", "<bean:write name="usuario" property="str_nombreUsuario"/>");'>
           <img src="images/img_add.gif" alt="Seleccionar" width="15" height="15" border="0">				</a>                </td>
        <td class="font_general <logic:equal name="bool_row" value="false">im</logic:equal>par" align="center">
           <bean:write name="usuario" property="str_nominaUsuario"/>
        </td>
        <td class="font_general <logic:equal name="bool_row" value="false">im</logic:equal>par">
           <html:hidden name="usuario" property="str_nombreUsuario"/>
           <bean:write name="usuario" property="str_nombreUsuario"/>
		</td>
        </tr>
     </logic:iterate>
</table>
  </html:form>
</body>
</html:html>
